package com.vcc.service.client.share.account.request;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ClientShareAccountTransferRequest implements Serializable {

    @NotNull(message = "id不能为空")
    private Long id;

    @NotNull(message = "金额不能为空")
    @Min(value = 1, message = "转账金额必须大于1")
    private BigDecimal amount;

    @NotNull(message = "是否转入不能为空")
    private Boolean hasTransferIn;

}
